TABLE OF CONTENTS
cycleclass/--background--
cycleclass/CYC_Active
cycleclass/CYC_Labels
cycleclass/CYC_PopActive
cycleclass/CYC_Popup
top cycleclass/--background--
NAME
Class: cycleclass
Superclass: baseclass
Include File:
FUNCTION
To provide a gadget simular to the gadtools.library it's cycle kind.
Objects from this class will send the following attributes pairs
in it's notification events:
GA_ID - Gadget object ID.
CYC_Active - Gadget object active label number.
top cycleclass/CYC_Active
NAME
CYC_Active -- ( ULONG )
FUNCTION
Set or get the number of the currently active label where 0 is the
first label in the array.
DEFAULT
0.
APPLICABILITY
(ISGNU).
top cycleclass/CYC_Labels
NAME
CYC_Labels -- ( STRPTR * )
FUNCTION
Set an array of string pointers which will be the cycle gadget labels.
The array must point to a valid NULL-terminated array or the object
will fail to create.
DEFAULT
None.
APPLICABILITY
(I).
top cycleclass/CYC_PopActive
NAME
CYC_PopActive -- ( BOOL ) ** V40 **
FUNCTION
To make the menu of a cycle object in popup mode appear with the
currently active label under the mouse. By default the menu will
appear just below the object.
DEFAULT
FALSE.
APPLICABILITY
(I).
SEE ALSO
CYC_Popup
top cycleclass/CYC_Popup
NAME
CYC_Popup -- ( BOOL )
FUNCTION
To make the cycle object into a popup menu. When this is set to TRUE
and you click in the object a menu appears in which all choises are
visible. Selecting the wanted item is simular to normal menu-selection.
Pressing the right mouse-button will cancel the selection.
Please note that when the popup option is turned on and the cycle
object has more entries than can be made visible on the screen the
list will be truncated.
On OS 3.0 systems or better (V39++) the menu will always use the
NewLook-menu coloring. On systems running less than OS 3.0 the menus
will appear in the BlockPen and DetailPen.
You can recognize a cycle object in popup mode by the small arrow
image pointing on a bar instead of the usual circular arrow image.
DEFAULT
FALSE.
APPLICABILITY
(I).
SEE ALSO
CYC_PopActive